$(function () {
    getcoll()
    function getcoll() {
        $.ajax({
            url: 'http://124.223.14.236:8060/user/userDataList',
            headers: {
                token: localStorage.getItem("token") || "",
            },
            success: function (res) {
                if (res.errno != 0) {
                    return alert(res.errmag)
                }
                console.log(res);
                var str = template('tpl', res)
                $('#list-box').html(str)
            }
        })
    }


})